/* * *
* MyApp can handle many events: mouse, key, pen, touch ...
* http://code.google.com/p/sceneexpression/wiki/EventHandlers
*/

#ifndef SX_MYAPP
#define SX_MYAPP

#include <sx/Main.h>


class MyApp : public sx::App {
	
	public:
    
    	MyApp();
    	~MyApp();      
        
        void keyPress( sx::Key& key );
        void keyRelease( sx::Key& key );
        
        virtual void touchDown( sx::Touch& touch );
        virtual void touchMove( sx::Touch& touch );
        virtual void touchUp( sx::Touch& touch );
        
        void mouseButton( sx::Mouse& mouse );
        void mouseScroll( sx::Mouse& mouse );
        
        sx::RectangleShape* rect;
        sx::TextShape* text;

};

#endif
	
